<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>基于Python的高校新闻网络爬虫系统设计与实现</title>
  <meta content="" name="descriptison">
  <meta content="" name="keywords">

  <!-- Favicons -->
  <link href="static/assets/img/favicon.png" rel="icon">
  <link href="static/assets/img/apple-touch-icon.png" rel="apple-touch-icon">

  <!-- Google Fonts -->
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,600,600i,700,700i,900" rel="stylesheet">

  <!-- Vendor CSS Files -->
  <link href="static/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="static/assets/vendor/icofont/icofont.min.css" rel="stylesheet">
  <link href="static/assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="static/assets/vendor/animate.css/animate.min.css" rel="stylesheet">
  <link href="static/assets/vendor/venobox/venobox.css" rel="stylesheet">
  <link href="static/assets/vendor/aos/aos.css" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="static/assets/css/style.css" rel="stylesheet">

</head>

<body>



  <!-- ======= Header ======= -->
  <header id="header">
    <div class="container">

      <div class="logo float-left">
        <h1 class="text-light"><a href="/"><span>高宇龙</span></a></h1>
        <!-- Uncomment below if you prefer to use an image logo -->
        <!-- <a href="temp.html"><img src="static/assets/img/logo.png" alt="" class="img-fluid"></a>-->
      </div>

      <nav class="nav-menu float-right d-none d-lg-block">
        <ul>
{#            新闻总条数，各类型条数#}
          <li class="active"><a href="/">首页<i class="la la-angle-down"></i></a></li>
          <li><a href="/new">标题展示</a></li>
            {#         类型比例分布饼图 #}
          <li><a href="/type">类型分布</a></li>
{#           新闻关键字 #}
          <li><a href="/word">词云</a></li>
          <li><a href="/hot">热搜榜</a></li>


        </ul>
      </nav><!-- .nav-menu -->

    </div>
  </header><!-- End Header -->

  <!-- ======= 主页内容6+1个 ======= class="table-light"  table-striped-->
    <section class="counts section-bg">
      <div class="container">
        <h2 align="center">热点新闻排行榜</h2>
        <table class="table" width="800">
            <tr>
                <th>序号</th>
                <th>标题</th>
                <th>浏览量</th>
            </tr>

            {% for new in newlist %}
                {% if new[0] < 4 %}
                <tr class="table-danger">
                    <td>{{ new[0] }}</td>
                    <td><a href="{{new[1]}}" target="_blank">{{ new[2] }}</a></td>
                    <td>{{ new[3] }}</td>
                </tr>
                {% else %}
                    <tr class="table-light">
                    <td>{{ new[0] }}</td>
                    <td><a href="{{new[1]}}" target="_blank">{{ new[2] }}</a></td>
                    <td>{{ new[3] }}</td>
                    </tr>
                {% endif %}
            {% endfor %}

        </table>
        <!-- 分页 -->

      </div>
    </section><!-- End Counts Section -->



  <!-- ======= Footer ======= -->


  <a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>

  <!-- Vendor JS Files -->
  <script src="static/assets/vendor/jquery/jquery.min.js"></script>
  <script src="static/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  <script src="static/assets/vendor/jquery.easing/jquery.easing.min.js"></script>
{#  <script src="static/assets/vendor/php-email-form/validate.js"></script>#}
  <script src="static/assets/vendor/jquery-sticky/jquery.sticky.js"></script>
  <script src="static/assets/vendor/venobox/venobox.min.js"></script>
  <script src="static/assets/vendor/waypoints/jquery.waypoints.min.js"></script>
  <script src="static/assets/vendor/counterup/counterup.min.js"></script>
  <script src="static/assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
  <script src="static/assets/vendor/aos/aos.js"></script>

  <!-- Template Main JS File -->
  <script src="static/assets/js/main.js"></script>

</body>

</html>